package com.wk.service.implement;

import com.wk.dao.Filesdao;
import com.wk.pojo.All_files;
import com.wk.service.Fileservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: thesis
 * @description: 学生的资料管理
 * @author: 王侃
 * @create: 2020-03-05 16:29
 **/
@Service
public class Fileserviceimpl implements Fileservice {

    @Autowired
    Filesdao filesdao;

    @Override
    public void insertintoAll_files(All_files files) {
        filesdao.insertintoAll_files(files);
    }

    @Override
    public List<All_files> selectbyuser_id_files(Integer user_id) {
        return filesdao.selectbyuser_id_files(user_id);
    }

    @Override
    public List<All_files> selectbyallfiles(String username,String name) {
        return filesdao.selectbyallfiles(username,name);
    }

    @Override
    public void updatefile_praise(Integer id) {
        filesdao.updatefile_praise(id);
    }

    @Override
    public void deletebymyfile(Integer id) {
        filesdao.deletebymyfile(id);
    }
}
